#define _CRT_SECURE_NO_WARNINGS 1
#include"test.h"

void Triangle() {
    float a, b, c;
    scanf("%f %f %f", &a, &b, &c);
    float p = (a + b + c) / 2.0;
    float area = sqrt(p * (p - a) * (p - b) * (p - c));//海伦公式
    printf("circumference=%.2f area=%.2f", a + b + c, area);
}

void Milk() {
    int n, h, m;
    scanf("%d %d %d", &n, &h, &m);
    int left = m % h;
    if (left > 0)
        printf("%d", n - m / h - 1);
    else
        printf("%d", n - m / h);
}

void Vsphere() {
    int r = 0;
    scanf("%d", &r);
    printf("%f", 4. / 3 * 3.14 * pow(r, 3));
}

void clock() {
    int h, m, k;
    scanf("%d:%d %d", &h, &m, &k);
    int x = k / 60;//需加的小时
    int s = k % 60;//需加的分钟
    int s1 = m + s;
    if (s1 > 60) {
        s1 %= 60;
        x += 1;
    }
    int x1 = (h + x) % 24;
    printf("%02d:%02d", x1, s1);
}